<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

{config_load file="catalog.conf"}
{config_load file=$module->getConfig()}

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$language->getLanguage()}" dir="{$language->getDirection()}">
	<head>
		{include file=$theme->getTemplateUrl("head_common.tpl")}
		<title>{#PAGE_TITLE#}</title>
	</head>
	
	<body>
		{include file=$theme->getTemplateUrl("body_start.tpl")}
		
		<h2>{#HEADING_TITLE#}</h2>
		
		<h3>{#HEADER_SUB_CATEGORIES#}</h3>
		
		<ul>
			{foreach name="categories" item="category" from=$catalog->getCategories($module->getCurrentCategoryId())}
				{strip}<li><a href="{$smarty.const.FILENAME_CATALOG}?view=core.category&amp;cPath={$category->getId()}">
					{$category->getName()}
				</a></li>{/strip}
			{/foreach}
		</ul>
		
		{include file=$theme->getTemplateUrl("catalog_module_page.tpl") embedded="true"}
		
		{include file=$theme->getTemplateUrl("body_end.tpl")}
	</body>
</html>

